<?php
namespace Home\Model;
use Think\Model;
//goods表操作类
class LinksModel extends Model{
    //查询方法
    public function links_sec(){
        $list = $this->where('status = 1')->order('rand()')->limit(5)->select();
        return $list;
    }
}